<html>
<body>

<h1>this is a first segment JavaScript</h1>

<p>JavaScript gai HTML content</p>

<button type="button" onclick="myFunction()">clickforme</button>

<button type="button" onclick="window.wst.startFunction()">cli for call java code</button>
<button type="button" onclick="window.wst.startFunction('hello world')">cli for call java code</button>


<p id="demo">this is a example</p>

<script>
function myFunction() {


   var test=["fewfew"]

   for(var i in window.wst){
		test.push(i)
   }
   document.getElementById("demo").innerHTML = test;


 }
</script>

</body>
</html>